package com.cr.dataprotect.sdk;

import com.cr.dataprotect.bean.ProviderConfigBean;
import com.cr.dataprotect.config.FieldProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author ChenRu1
 * @Description
 * @Date 14:45 2024/4/15
 **/
@Component
public class ProviderConfigApiImpl implements ProviderConfigApi {
    /**
     * 信息配置类
     */
    @Autowired(required = false)
    private FieldProvider provider;

    @Override
    public ProviderConfigBean getProviderConfig(String configFilePath) {
        ProviderConfigBean providerConfigBean = provider.config(configFilePath);
        return providerConfigBean;
    }
}
